#include <stdio.h>
int main ()
{
	int i;
	FILE *pFile1;
	FILE *pFile2;
	char name1[50];
	char name2[58]="copy of ";
	char string[1000];
	gets(name1);
	pFile1=fopen(name1,"r");
	if(pFile1==NULL)
	    printf("File does't exist");
	else
	{
		for(i=0;name1[i]!='\0';i++)
		    name2[i+8]=name1[i];
		pFile2=fopen(name2,"w");
		while(fgets(string,1000,pFile1)!=NULL)
			fputs(string,pFile2);
		fclose(pFile1);
		fclose(pFile2);
		printf("Done with copying");
	}
}
